import router from './../router'

class Common {
    checkIsLogin(response) {   
        console.log(response)     
        if (response.data.code == -1) {
            router.replace({path: '/'})
            return false
        } else {
            return true
        }
    }
}


export default new Common();